package com.zrx.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zrx.springboot.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.sql.Timestamp;

@Repository

public interface AdminMapper extends BaseMapper<Admin> {
    @Update("UPDATE admin SET date=#{date} WHERE id=#{id}")
    void update(Integer id, Timestamp date);
    @Update("UPDATE admin SET password=#{password} WHERE id=#{id}")
    void upword(Integer id, String password);
}
